package admin

import (
	"context"
	"server/internal/service"

	"server/api/admin/system"
)

func (c *ControllerSystem) CrontabRegisterList(ctx context.Context, req *system.CrontabRegisterListReq) (res *system.CrontabRegisterListRes, err error) {
	res = new(system.CrontabRegisterListRes)
	res.List = service.SystemCrontab().GetRegisterCrontabList(ctx)
	return
}
